<%@ page contentType="text/html;charset=UTF-8" errorPage="../../login.jsp"%>
<!-- 树型菜单开始 -->
<script language="javascript">
ns4 = (document.layers) ? 1 : 0;
ie4 = (document.all) ? 1 : 0;
ver4 = (ns4 || ie4) ? 1 : 0;

if (ver4) {
    with (document) {
        write("<style type='text/css'>");
        if (ns4) {
            write(".parent {position:absolute; visibility:visible}");
            write(".child {position:absolute; visibility:visible}");
            write(".regular {position:absolute; visibility:visible}")
        }
        else {
            write(".child {display:none}")
        }
        write("</style>");
    }
}

function getindex(el) {
    ind = null;
    for (i=0; i<document.layers.length; i++) {
        whichel = document.layers[i];
        if (whichel.id == el) {
            ind = i;
            break;
        }
    }
    return ind;
}

function arrange() {
    nexty = document.layers[firstind].pagey +document.layers[firstind].document.height;
    for (i=firstind+1; i<document.layers.length; i++) {
        whichel = document.layers[i];
        if (whichel.visibility != "hide") {
            whichel.pagey = nexty;
            nexty += whichel.document.height;
        }
    }
}

function initit(){
    if (!ver4) return;
    if (ns4) {
        for (i=0; i<document.layers.length; i++) {
            whichel = document.layers[i];
            if (whichel.id.indexof("child") != -1) whichel.visibility = "hide";
       }
        arrange();
    }
    else {
        divcoll = document.all.tags("div");
        for (i=0; i<divcoll.length; i++) {
            whichel = divcoll(i);
            if (whichel.classname == "child") whichel.style.display = "none";
        }
    }
}

function expandit(el) {
    if (!ver4) return;
    if (ie4) {
        whichel = eval(el + "child");
        if (whichel.style.display == "none") {
            whichel.style.display = "block";
			imgclose.style.display = "";
			imgopen.style.display = "none";
			
			
			
        }
        else {
            whichel.style.display = "none";
			imgopen.style.display = "";
			imgclose.style.display = "none";
			imgopen.style.display = "";
        }
    }
    else {
        whichel = eval("document." + el + "child");
        if (whichel.visibility == "hide") {
            whichel.visibility = "show";
        }
        else {
            whichel.visibility = "hide";
        }
        arrange();
    }
}
function expandit2(el) {
    if (!ver4) return;
    if (ie4) {
        whichel = eval(el + "child");
        if (whichel.style.display == "none") {
            whichel.style.display = "block";
			imgfclose.style.display = "";
			imgfopen.style.display = "none";
        }
        else {
            whichel.style.display = "none";
			imgfopen.style.display = "";
			imgfclose.style.display = "none";
			
        }
    }
    else {
        whichel = eval("document." + el + "child");
        if (whichel.visibility == "hide") {
            whichel.visibility = "show";
        }
        else {
            whichel.visibility = "hide";
        }
        arrange();
    }
}
function expandit3(el) {
    if (!ver4) return;
    if (ie4) {
        whichel = eval(el + "child");
        if (whichel.style.display == "none") {
            whichel.style.display = "block";
			imgsclose.style.display = "";
			imgsopen.style.display = "none";
			
			
			
			
        }
        else {
            whichel.style.display = "none";
			imgsopen.style.display = "";
			imgsclose.style.display = "none";
			
        }
    }
    else {
        whichel = eval("document." + el + "child");
        if (whichel.visibility == "hide") {
            whichel.visibility = "show";
        }
        else {
            whichel.visibility = "hide";
        }
        arrange();
    }
}
function expandit4(el) {
    if (!ver4) return;
    if (ie4) {
        whichel = eval(el + "child");
        if (whichel.style.display == "none") {
            whichel.style.display = "block";
			img4close.style.display = "";
			img4open.style.display = "none";
			
			
			
			
        }
        else {
            whichel.style.display = "none";
			img4open.style.display = "";
			img4close.style.display = "none";
			
        }
    }
    else {
        whichel = eval("document." + el + "child");
        if (whichel.visibility == "hide") {
            whichel.visibility = "show";
        }
        else {
            whichel.visibility = "hide";
        }
        arrange();
    }
}

function expandit5(el) {
    if (!ver4) return;
    if (ie4) {
        whichel = eval(el + "child");
        if (whichel.style.display == "none") {
            whichel.style.display = "block";
			img5close.style.display = "";
			img5open.style.display = "none";
			
			
			
			
        }
        else {
            whichel.style.display = "none";
			img5open.style.display = "";
			img5close.style.display = "none";
			
        }
    }
    else {
        whichel = eval("document." + el + "child");
        if (whichel.visibility == "hide") {
            whichel.visibility = "show";
        }
        else {
            whichel.visibility = "hide";
        }
        arrange();
    }
}
function expandit6(el) {
    if (!ver4) return;
    if (ie4) {
        whichel = eval(el + "child");
        if (whichel.style.display == "none") {
            whichel.style.display = "block";
			img6close.style.display = "";
			img6open.style.display = "none";
			
			
			
			
        }
        else {
            whichel.style.display = "none";
			img6open.style.display = "";
			img6close.style.display = "none";
			
        }
    }
    else {
        whichel = eval("document." + el + "child");
        if (whichel.visibility == "hide") {
            whichel.visibility = "show";
        }
        else {
            whichel.visibility = "hide";
        }
        arrange();
    }
}
function expandit7(el) {
    if (!ver4) return;
    if (ie4) {
        whichel = eval(el + "child");
        if (whichel.style.display == "none") {
            whichel.style.display = "block";
			img7close.style.display = "";
			img7open.style.display = "none";
			
			
			
			
        }
        else {
            whichel.style.display = "none";
			img7open.style.display = "";
			img7close.style.display = "none";
			
        }
    }
    else {
        whichel = eval("document." + el + "child");
        if (whichel.visibility == "hide") {
            whichel.visibility = "show";
        }
        else {
            whichel.visibility = "hide";
        }
        arrange();
    }
}
function expandit10(el) {
    if (!ver4) return;
    if (ie4) {
        whichel = eval(el + "child");
        if (whichel.style.display == "none") {
            whichel.style.display = "block";
			img10close.style.display = "";
			img10open.style.display = "none";
			
			
			
			
        }
        else {
            whichel.style.display = "none";
			img10open.style.display = "";
			img10close.style.display = "none";
			
        }
    }
    else {
        whichel = eval("document." + el + "child");
        if (whichel.visibility == "hide") {
            whichel.visibility = "show";
        }
        else {
            whichel.visibility = "hide";
        }
        arrange();
    }
}
onload = initit;
</script>
<!-- 树型菜单结束-->

<html>
<head>
<title>欢迎光临</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="style.css" type="text/css">
<style type='text/css'>
a:active {  color: #000000; text-decoration: none}
a:link {  color: #000000; text-decoration: none}
a:visited {  color: #000000; text-decoration: none}
a:hover {  color: #ff0000; text-decoration: underline}
a.a01:link {text-decoration:none;color:#ffffff;}
a.a01:visited {text-decoration:none;color:#ffffff;}
a.a01:active {text-decoration:none;color:#eeeeee;}
a.a01:hover {text-decoration:underline;color:#ffffff;}
body {
	margin-left: 0px;
	margin-top: 0px;
	
}
</style>


<script> 
//选择字体添加颜色
function turnbg(i) 
{ 
for (c=0;c<document.all.tds.length; c++) 
{ 
document.all.tds[c].bgcolor=""; 
} 

//document.all.tds[i].bgcolor="#64b4f3"; 

} 
</script>
<body style="overflow-x:hidden;">
<%

String level=(String)session.getAttribute("mger_level");
%>
<table width="153"  border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#ff0000">
  <tr>
    <td valign="top"><table width="153" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
      <tr>
        <td>
		
		
		<%
		//out.print(level);
			if(level.substring(0,1).equals("1")){
		%>
         <table width="153" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="5" background="images/menudbj.gif"><table width="153" border="0" align="center" cellpadding="0" cellspacing="0" background="images/menutop.gif" >
                <tr>
                  <td height="29">　<a href="#" onclick="expandit('kb1'); return false" ><img id=imgopen src="images/open.gif" width="11" height="11" border="0"><img style="display:none" id=imgclose 
                        height=11 src="images/close.gif" width=11 
                        border=0>会员查询</a></td>
                </tr>
          </table>
         <table width="125"  border="0" align="center" cellpadding="0" cellspacing="2" id="kb1child" class="child" style="display:none">
                
                
					   <tr>
                        <td id="tds"  onclick="turnbg(0)"><a href="test_blank.jsp?flag=-1" target="main">查询会员</a></td>
                      </tr>
                      <tr>
                        <td id="tds"  onclick="turnbg(1)"><a href="request_query.jsp?today=today" target="main">推荐人查询</a></td>
                      </tr>
                      <tr>
                        <td id="tds"  onclick="turnbg(19)"><a href="request_stat.jsp?today=today" target="main">推荐人统计</a></td>
                      </tr>
                  </table></td>
                </tr>
           </table>
                <!-- table width="153" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="5" background="images/menudbj.gif"><table width="153" border="0" align="center" cellpadding="0" cellspacing="0" background="images/menutop.gif" >
                <tr>
                  <td height="29">　<a href="#" onclick="expandit10('kb10'); return false" ><img id=img10open  src="images/open.gif" width="11" height="11" border="0"><img style="display:none" id=img10close 
                        height=11 src="images/close.gif" width=11 
                        border=0>会员管理</a></td>
                </tr>
              </table>
			 <table width="123"  border="0" align="center" cellpadding="0" cellspacing="2" id="kb10child" class="child" style="display:none">
                
               
					   <tr>
                        <td id="tds" onclick="turnbg(19)"><a href="remove_logout.jsp" target="main">往月拆机用户销户</a></td>
                      </tr>
                      <tr>
                        <td id="tds" onclick="turnbg(20)"><a href="remove_user.html" target="main">导入本月拆机用户</a></td>
                      </tr>
                
              </table-->
           <%}%>
          <%
			if(level.substring(1,2).equals("1")){
			%>          
			<table width="153" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="5" background="images/menudbj.gif"><table width="153" border="0" align="center" cellpadding="0" cellspacing="0" background="images/menutop.gif" >
                <tr>
                  <td height="29">　<a href="#" onclick="expandit2('kb2'); return false" ><img id=imgfopen src="images/open.gif" width="11" height="11" border="0"><img style="display:none" id=imgfclose 
                        height=11 src="images/close.gif" width=11 
                        border=0>使用情况</a></td>
                </tr>
              </table>
			    <table width="123"  border="0" align="center" cellpadding="0" cellspacing="2" id="kb2child" class="child" style="display:none">
                      
                        <tr>
                          <td id="tds" onclick="turnbg(2)"><a href="query_fax.jsp?flag=-1" target="main">传真使用情况</a></td>
                        </tr>
                        <tr>
                          <td id="tds" onclick="turnbg(3)"><a href="data_tongji.jsp?today=today" target="main">使用量日统计</a></td>
                        </tr>
                        <tr>
                          <td id="tds" onclick="turnbg(4)"><a href="month_stat.jsp?today=today" target="main">使用量月统计</a></td>
                        </tr>
                        <tr>
                          <td id="tds" onclick="turnbg(5)"><a href="dateamount.jsp?today=today" target="main">用户数日统计</a></td>
                        </tr>
                        <tr>
                          <td id="tds" onclick="turnbg(6)"><a href="monthamount.jsp?today=today" target="main">用户数月统计</a></td>
                        </tr>
                        <tr>
                          <td id="tds" onclick="turnbg(7)"><a href="gulv_tongji.jsp?today=today" target="main">开通方式统计</a></td>
                        </tr>
                        <tr>
                        <td id="tds" onclick="turnbg(8)"><a href="month_report.jsp?today=today" target="main">期末到达统计</a></td>
                          <!-- td id="tds" onclick="turnbg(8)"><a href="week_report_forms.jsp?today=today" target="main">期末到达统计</a></td-->
                        </tr>
                        <tr>
                          <td id="tds" onclick="turnbg(9)"><a href="download.jsp?today=today" target="main">导出用户</a></td>
                        </tr>
                    </table>
                    <%}%>
                    <%
			if(level.substring(2,3).equals("1")){
					%>  
		<table width="153" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="5" background="images/menudbj.gif"><table width="153" border="0" align="center" cellpadding="0" cellspacing="0" background="images/menutop.gif" >
                <tr>
                  <td height="29">　<a href="#" onclick="expandit3('kb3'); return false" ><img id=imgsopen src="images/open.gif" width="11" height="11" border="0"><img style="display:none"  id=imgsclose 
                        height=11 src="images/close.gif" width=11 
                        border=0>批量开通</a></td>
                </tr>
              </table>
              <table width="123"  border="0" align="center" cellpadding="0" cellspacing="2" id="kb3child" class="child" style="display:none">
                <tr>
                  <td><table width="100%"  border="0" cellspacing="2" cellpadding="0">
                     
					   <tr>
                        <td id="tds" onclick="turnbg(10)"><a href="bath_add.html" target="main">批量开通</a></td>
                      </tr>
					  <tr>
                        <td id="tds" onclick="turnbg(11)"><a href="bath_show.jsp" target="main">批量开通查询</a></td>
                      </tr>
					  
                      
                  </table></td>
                </tr>
                
              </table>
              
              <table width="153" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="5" background="images/menudbj.gif"><table width="153" border="0" align="center" cellpadding="0" cellspacing="0" background="images/menutop.gif" >
                <tr>
                  <td height="29">　<a href="#" onclick="expandit7('kb7'); return false" ><img id=img7open src="images/open.gif" width="11" height="11" border="0"><img style="display:none"  id=img7close 
                        height=11 src="images/close.gif" width=11 
                        border=0>批量操作</a></td>
                </tr>
              </table>
              <table width="123"  border="0" align="center" cellpadding="0" cellspacing="2" id="kb7child" class="child" style="display:none">
                <tr>
                  <td><table width="100%"  border="0" cellspacing="2" cellpadding="0">
                     
					   <tr>
                        <td id="tds" onclick="turnbg(17)"><a href="bath_cancel.html" target="main">批量操作</a></td>
                      </tr>
					  <tr>
                        <td id="tds" onclick="turnbg(18)"><a href="bath_cancel_show.jsp" target="main">批量操作查询</a></td>
                      </tr>
					  
                      
                  </table></td>
                </tr>
                
              </table>
              <%
			}if(level.substring(3,4).equals("1")){
			%>  
		<!-- table width="153" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="5" background="images/menudbj.gif"><table width="153" border="0" align="center" cellpadding="0" cellspacing="0" background="images/menutop.gif" >
                <tr>
                  <td height="29">　<a href="#" onclick="expandit6('kb6'); return false" ><img id=img6open src="images/open.gif" width="11" height="11" border="0"><img style="display:none"  id=img6close 
                        height=11 src="images/close.gif" width=11 
                        border=0>邮件群发</a></td>
                </tr>
              </table>
              <table width="123"  border="0" align="center" cellpadding="0" cellspacing="2" id="kb6child" class="child" style="display:none">
              
                
                <tr>
                  <td><table width="100%"  border="0" cellspacing="2" cellpadding="0">
                     
					   <tr>
                        <td id="tds" onclick="turnbg(12)"><a href="GroupSendE_mail.jsp?flag=-1" target="main">群发邮件</a></td>
                      </tr>
					  <tr>
                        <td id="tds" onclick="turnbg(13)"><a href="GroupQueryE_mail.jsp?today=today" target="main">群发邮件查询</a></td>
                      </tr>
					  
                      
                  </table></td>
                </tr>
         
                
              </table-->
              <%}%>
		   <table width="153" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="5" background="images/menudbj.gif"><table width="153" border="0" align="center" cellpadding="0" cellspacing="0" background="images/menutop.gif" >
                <tr>
                  <td height="29">　<a href="#" onclick="expandit4('kb4'); return false" ><img id=img4open  src="images/open.gif" width="11" height="11" border="0"><img style="display:none" id=img4close 
                        height=11 src="images/close.gif" width=11 
                        border=0>管理员管理</a></td>
                </tr>
              </table>
			 <table width="123"  border="0" align="center" cellpadding="0" cellspacing="2" id="kb4child" class="child" style="display:none">
                
               
					   <tr>
                        <td id="tds" onclick="turnbg(14)"><a href="manager_pwd.jsp" target="main">设置密码</a></td>
                      </tr>
                      <%
			if(level.substring(4,5).equals("1")){
					%><tr>
                        <td id="tds" onclick="turnbg(15)"><a href="manager_add.jsp" target="main">添加管理员</a></td>
                      </tr>
					    <tr>
                        <td id="tds" onclick="turnbg(16)"><a href="grade_action.jsp" target="main">管理员设置</a></td>
                      </tr>
					 <%}%>
                
              </table>
          
		    <table width="153" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="5" background="images/menudbj.gif"><table width="153" border="0" align="center" cellpadding="0" cellspacing="0" background="images/menutop.gif" >
                <tr>
                  <td height="29">　&nbsp;&nbsp;<a href="operation_book.jsp" target=main >操作说明书</a></td>
                </tr>
              </table>
		   <table width="153" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="5" background="images/menudbj.gif"><table width="153" border="0" align="center" cellpadding="0" cellspacing="0" background="images/menutop.gif" >
                <tr>
                  <td height="29">　&nbsp;&nbsp;<a href="../../index.jsp" target=_parent >退出</a></td>
                </tr>
              </table>
		  
		  
		  
		  
		  
		  		  </td>
            </tr>
          </table></td>
      </tr>
    </table>
    </body>